﻿using SpiderStudy.Utils;
using SpiderStudy.Utils.Currency;
using SpiderStudy.ViewManage;
using SpiderStudy.WebSite.Bcy;
using SpiderStudy.WebSite.Douban;
using System;
using System.Windows.Forms;

namespace SpiderStudy
{
    public partial class MainActivity : Form
    {
        public MainActivity()
        {
            InitializeComponent();
            InItView();
            new FloderHelper().InitFloder();
        }

        private void InItView()
        {
            comboBox1.Items.AddRange(new string[] { "ACGFI", "Baidu", "半次元", "数据挖掘" });
            comboBox1.SelectedIndex = 2;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FloderHelper.OpenFloder(".\\");
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            new GroupBoxHelper().RepMode(groupBox1, comboBox1.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
         //   Console.WriteLine(new WebSite.Baidu.BaiduSearchTool().CreateContent(textBox1.Text+"百度百科")); ;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            string Content = new BcyHelper().CrateContent();
          
        
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
        }
    }
}